Create Mobile Games with Corona (for HUDA ADEL ALANAZI) by Silvia Domenech
Author:Silvia Domenech
Language: eng
Format: epub
Tags: Pragmatic Bookshelf
ISBN: 978-1-937785-57-4
Publisher: The Pragmatic Bookshelf, LLC (466510)
powerups[ i ]:removeMe( )
removeTableRows( powerups, i, 1 )
end
end
* * *
Figure 43.
That’s it—Galactic Warfare now has power-ups! Compile it, and you’ll see something like the figure shown here.
Ending the Game
Our gameplay still has one glaring omission: there’s no way to lose.
It’s time to fix that now. To cause the game to end once all of the players’ lives have been lost, add a check of the lives variable to see whether it’s greater than zero. Any positive number is good, but otherwise call Corona’s storyboard:gotoScene function to return the player to the main menu.
Shooting/game.lua
-- Check whether we have some lives left, and return to the menu if we don't
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(6539)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6423)
Kotlin in Action by Dmitry Jemerov(5073)
Odoo 15 Development Essentials - Fifth Edition by Daniel Reis & Greg Mader(3381)
Odoo 15 Development Essentials by Daniel Reis(2818)
React Native - Building Mobile Apps with JavaScript by Novick Vladimir(2536)
Learning Angular - Second Edition by Christoffer Noring(2364)
Pride and Prejudice by Jane Austen(2352)
Mobile Forensics Cookbook by Igor Mikhaylov(2024)
Computers For Seniors For Dummies by Nancy C. Muir(2006)
Bulletproof Android: Practical Advice for Building Secure Apps (Developer's Library) by Godfrey Nolan(1877)
Android Development with Kotlin by Marcin Moskala & Igor Wojda(1804)
Building Android UIs with Custom Views by Raimon Ràfols Montané(1796)
1936941139 (N) by Bob Rosenthal(1738)
Building Progressive Web Apps: Bringing the Power of Native to the Browser by Ater Tal(1732)
Hands-On Internet of Things with MQTT by Tim Pulver(1715)
Android App Development by Franceschi Hervé J.;(1713)
Ember.js in Action by Joachim Haagen Skeie(1692)
Hands-On Design Patterns with React Native by Mateusz Grzesiukiewicz(1659)
